home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / ELECTRON / DATA / 3088.ZIP / PC.BAT < prev    next >
DOS Batch File  |  1990-02-09  |  1KB  |  39 lines

  1. echo off
  2. cls
  3.  
  4. if "%1" == "" goto help
  5. if "%1" == "otha" goto o-t-ha
  6. if "%1" == "OTHA" goto o-t-ha
  7. if not exist c:\pc\%1\*.* goto help
  8. cd PC
  9. cd %1
  10. goto start
  11.  
  12. :o-t-ha
  13. if not exist c:\pc\o-t-ha\*.* goto help
  14. cd PC
  15. cd o-t-ha
  16.  
  17. :start
  18. pc
  19. goto theend
  20.  
  21. :help
  22. echo ┌─────────────────────────────────────────────────────────────┐
  23. echo │                                                             │
  24. echo │ You did not specify directory name correctly.               │
  25. echo │ To use the PHILIPS COMPONENTS product information, press    │
  26. echo │                                                             │
  27. echo │                                                             │
  28. echo │                PC  (directory name)                         │
  29. echo │                                                             │
  30. echo └─────────────────────────────────────────────────────────────┘
  31. echo 
  32. echo   directory names available at your harddisk:
  33. dir c:\pc
  34. goto theend
  35.  
  36. :theend
  37. cd\
  38. echo on
  39.